<?php

namespace App\Kuafu\Feishu\Controller;

use App\Kuafu\Base\Controller\BaseController;
use App\Kuafu\Feishu\Service\SsoService;
use App\Kuafu\User\Enum\UserCodeEnum;
use App\Remote\Feishu\Sso\SsoRemote;
use GuzzleHttp\Client;
use Illuminate\Http\Request;

class SsoController extends BaseController
{
    public function merchantUserinfo(Request $request)
    {
        $code = $request->post("code", "");
        return $this->success(SsoService::getUserinfo($code, UserCodeEnum::MERCHANT_TYPE));
    }
}
